<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link href="css/basic.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>博客评论</title>
</head>
<script>
function showForm(){
	document.getElementById("cform").style.display="block";
	document.getElementById("but").style.visibility="hidden";
}
</script>
<c:if test="${pass==null }">
	<c:redirect url="login.jsp"></c:redirect>
</c:if>
<body style="text-align:center">
<div class="top" style="display: none;">
<a href="home.jsp"><button>主页</button></a>
<a href="BlogEdit?action=show"><button>我的博客</button></a>
<a href="writeblog.jsp"><button>上传博客</button></a>
<a href="userinfo.jsp"><button>${pass}</button></a>
<a href="Login?action=leave"><button>退出登录</button></a>
</div>

<ul>
<c:choose>
				<c:when test="${empty comment}">
				<li>没有评论</li>
				</c:when>
				<c:otherwise>
					<c:forEach items="${titles}" var="row" begin="${param.start}"
						end="${param.start+pagesize-1}">
						<li>${comment.title }</li>
						<li>${comment.content }</li>
					</c:forEach>
				</c:otherwise>
			</c:choose>
			</ul>
</body>
</html>